projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c20ba7
)
inspector: Hide the size-groups tab when empty
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 9 Nov 2014 02:30:12 +0000
(21:30 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 9 Nov 2014 02:30:12 +0000
(21:30 -0500)
gtk/inspector/size-groups.c
patch
|
blob
|
history
diff --git
a/gtk/inspector/size-groups.c
b/gtk/inspector/size-groups.c
index 69d26a2a268688e6ef97694e67fbebc138c1d074..48e19d2ea2955442420bc530d0eecb8972fb048e 100644
(file)
--- a/
gtk/inspector/size-groups.c
+++ b/
gtk/inspector/size-groups.c
@@
-282,8
+282,9
@@
gtk_inspector_size_groups_set_object (GtkInspectorSizeGroups *sl,
return;
}
- gtk_widget_show (GTK_WIDGET (sl));
groups = _gtk_widget_get_sizegroups (GTK_WIDGET (object));
+ if (groups)
+ gtk_widget_show (GTK_WIDGET (sl));
for (l = groups; l; l = l->next)
{
GtkSizeGroup *group = l->data;